package com.dailyblue.java.standard.thread.method;

public class MethodE {

    public synchronized void a(MethodF f){
        String name = Thread.currentThread().getName();
        System.out.println(name+"执行了这个是MethodE的a方法！");
        try {
            Thread.sleep(3000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println(name+"准备执行MethodF的b方法");
        f.b(this);
    }
}
